{{template "Header" .}}
	<!-- content start -->
	<div id="content">

		<article class="summery">
			<h1 class="title">{{.Art.Title}}</h1>
			<div class="authdate"> {{with .Art.Author}} {{.|html}} {{else}}匿名用户{{end}} 发表于{{.Art.Date.Format "2006-01-02 23:4: PM"}} </div>
			<hr>
			<div class="article">
				{{with .Art.Menus }}
				<div class="menu">
					<h2>目录</h2>
					<hr>
					<dl>{{range $menu:=.}} <dd>{{$menu}}</dd> {{ end}}</dl></div>
				{{end}}
				{{.Art.Content}}</p>
			</div>
			<div class="do">
				<div class="tags">标签：{{range .Art.Tags}}{{if . }}<a href="tag/?tag={{.}}" target="_blank">{{.}}</a>,&nbsp;{{end}}{{end}} </div>
				<div class="ops">
					{{if .IsAdmin }}<a href="javascript:Del({{.Art.ID}});">删除</a>{{end}}
					<a href="javascript:Good({{.Art.ID}});"><span id="{{.Art.ID}}">{{.Art.Good}}</span><img src="../static/images/ding.gif" alt="ding"></img>我顶啊！</a>
				</div>
			</div>
			<div class="line">
				<hr>
			</div>
			<!--comment-->
			<div id="commentform">
				<form action="/comment" method="post">
					<div class="textinput"><label>内容(200):</label><textarea id="newcmt" name="content" onpropertychange="ResizeTextarea('newcmt')" oninput="ResizeTextarea('newcmt')" onkeyup="ResizeTextarea('newcmt')" ></textarea></div>
					{{with .U}} {{else}}
					<div class="textinput"><label>作者(50B):</label><input name="newauthor" rows="1" ></input></div>
					{{end}}
					<div class="hidden"><label>id:</label><input name="cmtid" rows="1" >{{.Art.ID}}</input>
					</div>
					<div id="submit" ><button id="butsubmit" type="submit" value="发布评论">发布评论</button></div>
				</form>
			</div>
			<!--end comment-->
		</article>
		{{range .Cmts}}
		<article class="summery">
			<div class="article">
				{{with .Menus }}
				<div class="menu">
					<h2>目录</h2>
					<hr>
					<dl>{{range $menu:=.}}<dd>{{$menu}}</dd>{{ end}}</dl></div>
				{{end}}
				{{.Content}}</p>
			</div>
			<div class="author"> {{with .Author}} {{.|html}} {{else}}匿名用户{{end}}</div>
			<div class="date"> {{.Date.Format  "2006-01-02 23:4: PM"}} </div>
			<hr>
		</article>
		{{end}}


	</div>
	<!-- end content -->
</div> <!--end wrapper-->
{{template "Footer" .}} 
